# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: ponsfoot <cabezon dot hashimoto at gmail dot com>

pkgname=ibus-kkc
pkgver=1.5.22
pkgrel=3
pkgdesc="libkkc (Japanese Kana Kanji input method) engine for ibus"
arch=('loong64' 'x86_64')
url="https://github.com/ueno/ibus-kkc"
license=('GPL')
depends=('ibus' 'libkkc' 'libkkc-data' 'skk-jisyo')
makedepends=('vala' 'intltool')
source=(https://github.com/ueno/ibus-kkc/releases/download/v$pkgver/ibus-kkc-$pkgver.tar.gz)
sha512sums=('767a995cb97ca7cf5434f64094351c4fcf1d3de9f31da6f6642ccec2d199ddfb58e27f281b4dd3c63f44dc29cd46b36808ecd1aacfe0b1320d0688d567eb6fd4')

build() {
  cd "${pkgname}-${pkgver}"
  ./configure --prefix=/usr --libexecdir=/usr/lib/ibus-kkc --disable-static
  make
}

package() {
  cd "${pkgname}-${pkgver}"
  make DESTDIR="$pkgdir" install
}

